<?php

namespace app\model;
use app\util\Tools;
class UserAllot extends Base
{
    protected $autoWriteTimestamp = true;
    protected $resultSetType = 'collection';
    protected $updateTime = 'updateTime';
    protected $createTime = 'addTime';


    public function getstatusTextAttr($value, $data) {
        $status = ['1' => '已分配','2' => '用户异常', '9' => '已删除'];
        return  isset($status[$data['status']])?$status[$data['status']]:'未知';
    }
}